from django.urls import path
from web import views

urlpatterns = [
    path('', views.index, name="web.index"),
    path('show/<int:id>/', views.show, name="web.show"),
    path('web_topic_show/<int:id>', views.topic_web_show, name="web.topic_show"),
    path('web_category_show/<int:id>', views.category_web_show, name="web.category_show"),

    path('category/list/', views.category_list, name="category.list"),
    path('category/add/', views.category_add, name="category.add"),
    path('category/delete/<int:id>', views.category_delete, name="category.delete"),
    path('category/update/<int:id>', views.category_update, name="category.update"),

    path('topic/list/', views.topic_list, name="topic.list"),
    path('topic/add/', views.topic_add, name="topic.add"),
    path('topic/delete/<int:id>', views.topic_delete, name="topic.delete"),
    path('topic/update/<int:id>', views.topic_update, name="topic.update"),
    path('topic/show/<int:id>', views.topic_show, name="topic.show"),


]
